package com.leanin.mapper;

import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.leanin.domain.SatisfyInfo;

public interface SatisfyInfoMapper {
	
	/**
	 * 查询满意度表单列表
	 * @return
	 */
	List<SatisfyInfo> findSatisfyList(@Param("typeId") Long typeId,@Param("satisfyName") String satisfyName);
	/**
	 * 注销满意度表单
	 * @param satisfyNum
	 * @return
	 */
    int logoutSatisfyInfo(String satisfyNum);

    /**
     * 增加满意度表单类型
     * @param record
     * @return
     */
    int addSatisfyInfo(SatisfyInfo record);

    /**
     * 根据表单号查询表单数据
     * @param satisfyNum
     * @return
     */
    SatisfyInfo findSatisfyById(String satisfyNum);
    
    /**
     * 根据名字查询表单信息
     * @param satisfyNum
     * @return
     */
    SatisfyInfo findSatisfyByName(String satisfyName);

    /**
     * 编辑满意度表单数据
     * @param record
     * @return
     */
    int updateSatisfyInfo(SatisfyInfo record);

}